#ifndef WRAPPERS_H
#define WRAPPERS_H

#define FUNCTION(f) lua_function_##f

#define WRAP_FUNCTION(m)                           \
static int FUNCTION(m)(lua_State* L)               \
{                                                  \
	Delegate<Result, Arguments> d =                \
		Delegate<Result, Arguments>::From(m);      \
	Invocation func(L, d);                         \
	return func.exec();                            \
}                                                  \

#endif
